package top.kaoshanji.p1ch06b;

/**
 * 代码清单-p1ch06b-134页b：可变参数列表与自动装箱机制
 * author kaoshanji
 * ^_^
 * create time 2025/3/8 18:50
 */
public class AutoboxingVarargs {

    static void f(Integer... args) {
        for (Integer i: args) {
            System.out.print(i + " ");
        }
        System.out.println();
    }

    public static void main(String[] args) {
        f(1, 2);
        f(4, 5, 6, 7, 8, 9);
        f(10, 11, 12);
    }

}
